package com.uni.dto;

import java.util.Date;
import java.util.List;

import javax.validation.constraints.NotBlank;

import com.fasterxml.jackson.annotation.JsonFormat;

import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 购物订单
 * @author yuyanzheng
 *
 */
@NoArgsConstructor
@Data
public class AddCommodityDTO {
	private Long shopId;
	private Integer payType;
	private Long orderId;
	private String orderNo;
	private Long userId;
	private Long schoolId;
	
	@NotBlank(message="不能为空")
	private String phone;
	@NotBlank(message="不能为空")
	private String address;
	@NotBlank(message="不能为空")
	private String username;
	
	@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss")
	private Date preDeliveryTime;
	
	private List<CommodityDTO> commoditys;
	private String remark;
}
